@extends('users.app')
@section('title', '系统配置')
@section('content')
  <div class="col-lg-12">
    <div class="card col-xl-8 offset-xl-2">
      <div class="card-header border-bottom">
        <h4 class="card-title">系统配置</h4>
      </div>
      <div class="card-body">
      @include('common.error')
        <form class="form" action="{{ route('settings.update') }}" method="POST" accept-charset="UTF-8">
          <input type="hidden" name="_token" value="{{ csrf_token() }}">
          <input type="hidden" name="_method" value="PUT">
          <div class="form-group">
            <label for="username2">站点名称</label>
            <input type="text" class="form-control" name="title" id="username2" value="{{ old('title', setting('title', '站点名称'))}}">
          </div>
          <div class="form-group">
            <label for="username2">扣量比例(整数 如10 表示扣10%)</label>
            <input type="text" class="form-control" name="kouliang" id="username2" value="{{ old('kouliang', setting('kouliang', ''))}}" placeholder="扣量比例">
          </div>
          <div class="form-group">
            <label for="kouliang_min">扣量阙值(大于此值开始扣量)</label>
            <input type="text" class="form-control" name="kouliang_min" id="kouliang_min" value="{{ old('kouliang_min', setting('kouliang_min', ''))}}" placeholder="扣量阙值">
          </div>
          <div class="form-group">
            <label for="username2">推广链接数</label>
            <input type="text" class="form-control" name="short_urls_nums" id="username2" value="{{ old('short_urls_nums', setting('short_urls_nums', '10'))}}" placeholder="推广链接数">
          </div>
          <div class="form-group">
            <label for="username2">访问单价</label>
            <input type="text" class="form-control" name="price" id="username2" value="{{ old('price', setting('price', '0.10'))}}" placeholder="访问单价">
          </div>
          <div class="form-group">
            <label for="outtime">统计延时（秒）</label>
            <input type="text" class="form-control" name="outtime" id="outtime" value="{{ old('outtime', setting('outtime', '3'))}}" placeholder="延迟时间">
          </div>
          <div class="form-group">
            <label for="cid">MTA统计cid</label>
            <input type="text" class="form-control" name="cid" id="cid" value="{{ old('cid', setting('cid'))}}" placeholder="cid">
          </div>
          <div class="form-group">
            <label for="sid">MTA统计sid</label>
            <input type="text" class="form-control" name="sid" id="sid" value="{{ old('sid', setting('sid'))}}" placeholder="sid">
          </div>

          <div class="form-group">
            <label for="mta_appkey">MTA统计appkey</label>
            <input type="text" class="form-control" name="mta_appkey" id="mta_appkey" value="{{ old('mta_appkey', setting('mta_appkey'))}}" placeholder="mta_appkey">
          </div>
          <div class="form-group">
            <label for="qq">联系QQ</label>
            <input type="text" class="form-control" name="qq" id="qq" value="{{ old('qq', setting('qq'))}}" placeholder="填写QQ账号">
          </div>
          <div class="form-group">
            <label for="lianxi_text">联系方式字段</label>
            <input type="text" class="form-control" name="lianxi_text" id="lianxi_text" value="{{ old('lianxi_text', setting('lianxi_text'))}}" placeholder="默认为 联系方式">
          </div>
          <div class="form-group">
            <label>联系方式是否闪烁</label>
            <div class="form-check col-md-12 m-b-20">
            <div class="custom-control custom-radio radio custom-control-inline">
              <input type="radio" class="custom-control-input" name="lianxi_flash" id="male" @if(old('lianxi_flash', setting('lianxi_flash')) > 0) checked="" @endif value="1">
              <label class="custom-control-label" for="male">是</label>
            </div>
            <div class="custom-control custom-radio radio custom-control-inline">
              <input type="radio" class="custom-control-input" name="lianxi_flash" id="gender" @if(old('lianxi_flash', setting('lianxi_flash')) < 1) checked="" @endif value="0">
              <label class="custom-control-label" for="gender">否</label>
            </div>
          </div>
          </div>
          <button type="submit" class="btn btn-common">提交</button>
        </form>
      </div>
    </div>
  </div>
@stop
